users = ['Fred', 'John', 'Steve', 'Ann', 'Mary']
passwords = ['access', 'dog', '12345', 'kids', 'qwerty']

username = raw_input("Enter your username => ")
if username in users:
    position = users.index(username)
    pwd = raw_input('Enter your password => ')
    if pwd == passwords[position]:
        print 'Hi there, %s. Access granted.' % username
    else:
        print 'Password incorrect. Access denied.'
else:
    print "Sorry...I don't recognize you. Access denied."
